<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>售后客服</title>
    <style>
        .app {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            width: 100%;
        }

        .app h3,
        .app span {
            color: red;
            font-size: 28px;
        }

        .app span {
            font-weight: bold;
        }

        .app img {
            width: 100%;
            max-width: 420px;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <!--
    version:0.1.1
    time:2023.09.04
-->
    <div id="app" class="app">
        <h3>长按下方二维码添加好友</h3>
        <span>↓↓↓</span>
        <img id="dynamic-image" src="./img/晨晨.jpg" />
    </div>
    <script>
        window.onload = function () {
            const images = ["./img/晨晨.jpg", "./img/静静.jpg", "./img/珊珊.jpg"];
            const imgElement = document.getElementById("dynamic-image");

            // 随机选择一个图片路径
            const randomIndex = Math.floor(Math.random() * images.length);
            const randomImage = images[randomIndex];

            // 设置图片路径
            imgElement.src = randomImage;
        };
    </script>
</body>

</html>